<?php 

namespace pmvc\mvc;

/**
 * A class for handling a request.
 */
interface RequestFilter {
	
	/**
	 * Filters a request.  {@link RequestFilter}s must call
	 * {@code $chain->next($request, $response)} to continue
	 * the request.
	 * @param RequestChain $chain the {@link RequestChain}
	 * @param Request $request the {@link Request}
	 * @param Response $response the {@link Response}
	 */
    public function handleRequest(RequestChain $chain, Request $request, Response $response);
	
}

?>